package cn.dnui_wwt524.dnuifood_16110100524.model;

import cn.dnui_wwt524.dnuifood_16110100524.iface.ShopIface;
import cn.dnui_wwt524.dnuifood_16110100524.listener.OnRetrofitListener;
import cn.dnui_wwt524.dnuifood_16110100524.service.FoodService;
import retrofit2.Call;
public class FoodModel  extends BaseModel implements ShopIface {
    private FoodService foodService;
    public FoodModel(){
        super();
        foodService = retrofit.create(FoodService.class);
    }
    public void getFoodByShops(String shop_id,OnRetrofitListener listener) {
        Call call =foodService.getFoodByShop(shop_id);
        bindCallBack(call,listener,1);
    }

    @Override
    public void getAllShops(OnRetrofitListener listener) {

    }

    @Override
    public void getFoodByShop(String shop_id, OnRetrofitListener listener) {

    }

    @Override
    public void getShopById(String shop_id, OnRetrofitListener listener) {

    }



}
